package com.djhu.freepartner.bean;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author zw
 * @since 2018-08-02
 */
@TableName("partner_user")
public class PartnerUser extends Model<PartnerUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id 系统生成
     */
    @TableId(type = IdType.ID_WORKER_STR)
    private String userid;
    /**
     * 用户注册的ID
     */
    private String username;
    /**
     * 邮箱地址
     */
    private String email;
    /**
     * 登录密码
     */
    private String password;
    /**
     * 手机号码
     */
    private String phone;
    /**
     * 账户余额
     */
    private Integer account;

    /**
     * 实名认证状态
     */
    private Integer certificationstatus;

    /**
     * 真实姓名
     */
    private String name;
    /**
     * 身份证号码
     */
    private String idcard;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 性别
     */
    private String gender;
    /**
     * 头像 存放头像URL
     */
    private String portrait;
    /**
     * 个性签名
     */
    private String personality;
    /**
     * 角色
     */
    private String role;
    /**
     * 是否实名验证
     */
    private Integer idcardverifi = 0;
    /**
     * 电话号码是否验证
     */
    private Integer phoneverifi;
    /**
     * 隐私设置-广播登录消息
     */
    private Integer loginradio;
    /**
     * 隐私设置-提醒阅读发布消息
     */
    private Integer browseradio;
    /**
     * 隐私设置-提醒点击详细消息
     */
    private Integer lookupradio;

    /**
     * 系统推送的token
     */
    private String pushtoken;

    /**
     * 会话id
     */
    private String sessionid;
    /**
     * 创建时间 20180801121212格式
     */
    private String createdate;
    /**
     * 修改时间 20180801121212格式
     */
    private String modifydate;
    /**
     * 创建用户
     */
    private String createuser;
    /**
     * 状态
     */
    private String status;
    /**
     * 排序字段
     */
    private String sorted;
    /**
     * 备注信息
     */
    private String remark;


    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getAccount() {
        return account;
    }

    public void setAccount(Integer account) {
        this.account = account;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPortrait() {
        return portrait;
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait;
    }

    public String getPersonality() {
        return personality;
    }

    public void setPersonality(String personality) {
        this.personality = personality;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Integer getIdcardverifi() {
        return idcardverifi;
    }

    public void setIdcardverifi(Integer idcardverifi) {
        this.idcardverifi = idcardverifi;
    }

    public Integer getPhoneverifi() {
        return phoneverifi;
    }

    public void setPhoneverifi(Integer phoneverifi) {
        this.phoneverifi = phoneverifi;
    }

    public Integer getLoginradio() {
        return loginradio;
    }

    public void setLoginradio(Integer loginradio) {
        this.loginradio = loginradio;
    }

    public Integer getBrowseradio() {
        return browseradio;
    }

    public void setBrowseradio(Integer browseradio) {
        this.browseradio = browseradio;
    }

    public Integer getLookupradio() {
        return lookupradio;
    }

    public void setLookupradio(Integer lookupradio) {
        this.lookupradio = lookupradio;
    }

    public String getSessionid() {
        return sessionid;
    }

    public void setSessionid(String sessionid) {
        this.sessionid = sessionid;
    }

    public String getCreatedate() {
        return createdate;
    }

    public void setCreatedate(String createdate) {
        this.createdate = createdate;
    }

    public String getModifydate() {
        return modifydate;
    }

    public void setModifydate(String modifydate) {
        this.modifydate = modifydate;
    }

    public String getCreateuser() {
        return createuser;
    }

    public void setCreateuser(String createuser) {
        this.createuser = createuser;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


    public String getSorted() {
        return sorted;
    }

    public void setSorted(String sorted) {
        this.sorted = sorted;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getCertificationstatus() {
        return certificationstatus;
    }

    public void setCertificationstatus(Integer certificationstatus) {
        this.certificationstatus = certificationstatus;
    }

    public String getPushtoken() {
        return pushtoken;
    }

    public void setPushtoken(String pushtoken) {
        this.pushtoken = pushtoken;
    }

    @Override
    protected Serializable pkVal() {
        return this.userid;
    }

    @Override
    public String toString() {
        return "PartnerUser{" +
        ", userid=" + userid +
        ", username=" + username +
        ", email=" + email +
        ", password=" + password +
        ", phone=" + phone +
        ", account=" + account +
        ", name=" + name +
        ", idcard=" + idcard +
        ", age=" + age +
        ", gender=" + gender +
        ", portrait=" + portrait +
        ", personality=" + personality +
        ", role=" + role +
        ", idcardverifi=" + idcardverifi +
        ", phoneverifi=" + phoneverifi +
        ", loginradio=" + loginradio +
        ", browseradio=" + browseradio +
        ", lookupradio=" + lookupradio +
        ", sessionid=" + sessionid +
        ", createdate=" + createdate +
        ", modifydate=" + modifydate +
        ", createuser=" + createuser +
        ", status=" + status +
        ", sorted=" + sorted +
        ", remark=" + remark +
        "}";
    }
}
